﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Reflection;

namespace TravelWeb.Common.Util
{
    public static class ReflectorUtil
    {
        public static Type GetPropertyType(Type type, String propertyName)
        {
            PropertyInfo pi = type.GetProperty(propertyName);
            if (pi == null)
                return null;
            else
                return pi.PropertyType;
        }

    }
}